Ext.define('AM.component.shape.Triangle', {
    extend:'AM.component.shape.BaseShape',
    draw:function () {
        var canvas = this.el.dom;
        var context = canvas.getContext('2d');
        context.beginPath();
        context.lineWidth = 10;
        context.moveTo(150, 0);
        context.lineTo(300, 150);
        context.lineTo(0, 150);
        context.closePath();
        context.stroke();
    }
})